package iotwisp.school.user.command.user;

import iotwisp.base.cqrs.SPIBaseCommand;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.validation.constraints.NotBlank;

@SuppressWarnings("serial")
@Data
@EqualsAndHashCode(callSuper = false)
public class CreateUserSCmd extends SPIBaseCommand {

	@NotBlank(message = "必须输入用户姓名")
	private String name;

    @NotBlank(message = "必须输入手机号")
    private String mobile;

    @NotBlank(message = "必须输入密码")
    private String password;

	@NotBlank(message = "必须输入注册推荐人手机号，如无推荐人请填写000000")
	private String regReferrerUserMobile;
	
	private String headImageId;

	private String wxAccessToken;
	
	public String getUrl() {
		return "/org/user/create";
	}
}
